package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_img_search`", catalog="id")
public class YsImgSearch extends BaseEntity<YsImgSearch> {

	private Long id; // 主键ID
	private String asin; // 竞品ASIN码
	private Integer thirdType; // 第三方类型，见ENUM
	private String respContent; // 相应结果
	private Integer stateHandle; // 处理状态，0未处理1已处理
	private Integer stateIntoSecond; // 进入第二搜索库状态，见ENUM
	private String respInfo; // 结果信息，JSON格式
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsImgSearch setId(Long id) {
		this.id = id;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public YsImgSearch setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public Integer getThirdType() {
		return thirdType;
	}
	public YsImgSearch setThirdType(Integer thirdType) {
		this.thirdType = thirdType;
		return this;
	}
	public String getRespContent() {
		return respContent;
	}
	public YsImgSearch setRespContent(String respContent) {
		this.respContent = respContent;
		return this;
	}
	public Integer getStateHandle() {
		return stateHandle;
	}
	public YsImgSearch setStateHandle(Integer stateHandle) {
		this.stateHandle = stateHandle;
		return this;
	}
	public Integer getStateIntoSecond() {
		return stateIntoSecond;
	}
	public YsImgSearch setStateIntoSecond(Integer stateIntoSecond) {
		this.stateIntoSecond = stateIntoSecond;
		return this;
	}
	public String getRespInfo() {
		return respInfo;
	}
	public YsImgSearch setRespInfo(String respInfo) {
		this.respInfo = respInfo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsImgSearch setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsImgSearch setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsImgSearch setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsImgSearch ysImgSearch(
		String asin,
		Integer thirdType,
		String respContent,
		Integer stateHandle,
		Integer stateIntoSecond,
		String respInfo,
		Integer status
			) {
		YsImgSearch entity = new YsImgSearch();
		entity.setAsin(asin);
		entity.setThirdType(thirdType);
		entity.setRespContent(respContent);
		entity.setStateHandle(stateHandle);
		entity.setStateIntoSecond(stateIntoSecond);
		entity.setRespInfo(respInfo);
		entity.setStatus(status);
		return entity;
	}
}